@charset "UTF-8";
@import "../core/core";

/*详情大图*/
.img-box {
  position: relative;
  //padding: 0.4rem;
  text-align: center;
  background: #fff;
  @include border-bottom($borderGrayF);
  img {
    //width: 95%;
    height: auto;
  }
}
.img-box-list {

  //padding: 0.4rem;
  text-align: center;
  background: #fff;
  @include border-bottom($borderGrayF);
  .imgitem {
    float:left;
    margin-left: 2px;
    img{
      width: 40px;
      height: 40px;

    }
  }
  .imgitem-selected {
    float:left;
    margin-left: 2px;
    img{
      width: 40px;
      height: 40px;
      border: 2px solid red;
    }
  }
}
/*产品名称，价格*/
.g-info {
  padding: 1rem;
  background: #fff;
  @include border-bottom($borderGrayF);
  .g-name {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.8rem;
    @include ellipsis();
  }
  .goods-price {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: $red;
    .price {
      font-size: 1.7rem;
    }
  }
  .g-notice {
    font-size: 1.2rem;
    color: $red;
  }
  .g-gg {
    font-size: 1.2rem;
    color: $gray6;
  }
}
/*产品详情页面调整产品数量*/
.g-reg-count {
  height: 4.4rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
  line-height: 4.4rem;
  background: #fff;
  @include border-bottom($borderGrayE);
  @include clearfix();
  .count-txt {
    float: left;
  }
}
.reg-count {
  float: right;
  display: block;
  width: 12rem;
  height: 4.4rem;
  line-height: 4.4rem;
  @include display-flex(inline-flex);
  span {
    display: inline-block;
    width: 3.2rem;
    height: 3.2rem;
    margin: 0.6rem 0;
    font-size: 1.4rem;
    line-height: 3.2rem;
    text-align: center;
    border: 1px solid #888;
    color: #888;
    vertical-align: middle;
    &.count-minus {
      @include flex(2.8rem);
      border-top-left-radius: 0.4rem;
      border-bottom-left-radius: 0.4rem;
    }
    &.count-sum {
      @include flex(4rem);
      color: $gray3;
      font-size: 1.5rem;
      border-left: 0;
      border-right: 0;
    }
    &.count-plus {
      @include flex(2.8rem);
      border-top-right-radius: 0.4rem;
      border-bottom-right-radius: 0.4rem;
    }
  }
}
/*产品详情页面猜你喜欢*/
.may-you-like {
  margin-bottom: 1rem;
  background: #fff;
  @include border-both($borderGrayE);
}
.like-title {
  padding: 0 1rem;
  height: 4rem;
  line-height: 4rem;
  font-size: 1.5rem;
  @include border-bottom($borderGrayF);
}
.like-goods {
  padding: 1rem 0 1rem 1rem;
  overflow-x: auto;
  @include border-bottom($borderGrayF);
  ul {
    width: 2000px;
    padding-right: 1rem;
    @include clearfix();
    li {
      position: relative;
      float: left;
      line-height: 8rem;
      a {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        border: 1px solid $borderGrayF;
        text-align: center;
        overflow: hidden;
        .like-mark {
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 2rem;
          font-size: 1rem;
          line-height: 2rem;
          text-align: center;
          background: rgba(255, 255, 255, .8);
          &.dn {
            color: $dnmark;
            font-weight: 700;
          }
          &.sd {
            color: $sdmark;
            font-weight: 700;
          }
        }
        img {
          width: 100%;
          height: auto;
          vertical-align: middle;
        }
      }
      &.like-plus {
        display: block;
        width: 4rem;
        text-align: center;
        color: #d9d9d9;
        font-size: 2.4rem;
      }
      .like-price {
        margin-top: 0.4rem;
        text-align: center;
        font-size: 1.2rem;
        line-height: 2rem;
      }
    }
  }
}
.like-action {
  height: 4.4rem;
  line-height: 4.4rem;
  padding: 0 1rem;
  @include clearfix();
  .action-l {
    display: block;
    width: 50%;
    float: left;
  }
  .action-r {
    float: right;
  }
  .like-buy-btn {
    height: 3rem;
    margin: 0.7rem 0;
    padding: 0 2rem;
    font-size: 1.4rem;
    line-height: 3rem;
    color: $orange;
    border: 1px solid $orange;
    border-radius: 0.4rem;
  }
}
.buy-tips {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  padding-left: 1rem;
  font-size: 1.3rem;
  line-height: 2rem;
  color: $gray9;
}
/*详情页面神灯&店内有售商品列表*/
.other-goods {
  border-top: 1px solid $borderGrayE;
}
.other-tab {
  height: 4rem;
  line-height: 4rem;
  background: #fff;
  @include border-bottom($borderGrayF);
  > span {
    display: block;
    float: left;
    width: 50%;
    font-size: 1.4rem;
    text-align: center;
    color: $gray6;
    span {
      display: inline-block;
      height: 4rem;
      padding: 0 0.8rem;
    }
  }
  .tag-on {
    color: $red;
    font-weight: 700;
    span {
      border-bottom: 0.2rem solid $red;
    }
  }
  &.single-tab {
    .tag-on {
      text-align: left;
      color: $red;
      font-weight: 700;
      span {
        border-bottom: 0;
      }
    }
  }
}
/*购物车*/
.cart-action {
  bottom: 0;
  .ac-left {
    padding-left: 0.8rem;
    @include flex(2)
  }
  .ac-mid {
    padding: 0 1rem;
    background: #fff;
    border-top-color: #e6e6e6;
    color: $gray6;
    @include flex(4);
    .cart-sum span {
      font-weight: 700;
      color: $red;
    }
  }
  .ac-right {
    @include flex(4)
  }
  .chk-wrap {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    font-size: 1.1rem;
    line-height: 4rem;
    span {
      vertical-align: middle;
    }
  }
}
#cart-list {
  border-bottom: 0;
}
.g-item-wrap .g-i-info .g-i-name {
  font-size: 1.4rem;
  padding-right: 1rem;
}
/*产品图文详情*/
.gs-detail {
  padding: 0 1rem;
  background: #fff;
  color: #555;
  h3 {
    font-size: 1.5rem;
  }
  h2 {
    padding-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: $orange;
    border-bottom: 1px solid $borderGrayF;
  }
  li {
    font-size: 1.3rem;
    line-height: 1.6;
  }
  p {
    margin-bottom: 0.6rem;
  }
  img {
    width: 100%;
    height: auto;
  }
}
/*特殊情况商品详情遮罩*/
.has-error {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0, .4);
  text-align: center;
  .mask-error-txt {
    font-size: 1.3rem;
    color: #fff;
    a {
      font-size: 1.3rem;
      color: #fff;
      text-decoration: underline;
    }
  }
}
.form-group {
  margin-top: 1px;
  padding: 1.6rem;
  input[type="password"],
  input[type="text"],
  input[type="number"],
  select {
    width: 100%;
    height: 4.2rem;
    font-size: 1.4rem;
    padding: 1rem 1rem;
    border: 0;
  }

  input[type="checkbox"],
  input[type="radio"] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 0;
    position: relative;
    display: inline-block;
    width: 4.2rem;
    height: 4.2rem;
    background: url(../../img/chk.png);
    //border: 1px solid $grayC;
    background-size: 4.2rem 4.2rem;
    border-radius: 1rem;
    vertical-align: middle;
  }
  input[type="radio"]:checked {
    background: url(../../img/radio-on.png);
    background-size: 4.2rem 4.2rem;
  }
  input[type="checkbox"]:checked {
    background: url(../../img/chk-on.png);
    background-size: 4.2rem 4.2rem;

  }
  textarea {
    width: 100%;
    border: 0;
    font-size: 1.4rem;
    padding: 1rem 1rem;
    vertical-align:top
  }
  .form-item {
    position: relative;
    border: 1px solid $grayC;
    margin-top: -1px;
    overflow: hidden;
    &.first-item {
      border-top-left-radius: 0.4rem;
      border-top-right-radius: 0.4rem;
    }
    &.last-item {
      border-bottom-left-radius: 0.4rem;
      border-bottom-right-radius: 0.4rem;
    }
    &.single-item {
      border-radius: 0.4rem;
    }
  }
  .form-item-btn {
    margin-top: 1.4rem;
    button {
      width: 100%;
      height: 4.2rem;
      padding-left: 0;
      font-size: 1.5rem;
      line-height: 4.2rem;
      color: #fff;
      border: 0;
      background: $red;
      border-radius: 0.4rem;
    }
  }
  .get-code-btn {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    height: 3rem;
    font-size: 1.2rem;
    line-height: 3rem;
    padding: 0 1rem;
    background: $orange;
    color: #fff;
    border-radius: .2rem;
    &.disable {
      background: $grayC;
    }
  }
  input[readonly="readonly"] {
    color: $gray9;
  }
}
/*神灯无货时弹出的信息提示*/
#naked-notice {
  position: absolute;
  top: -4.2rem;
  left: 0;
  z-index: 999;
  display: block;
  width: 100%;
  height: 4rem;
  padding: 0 1rem;
  font-size: 1.45rem;
  line-height: 4rem;
  background: rgba(64, 237, 237, 0.85);
  color: #fff;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  .icon-arrow1 {
    float: right;
    font-size: 1.2rem;
    line-height: 4rem;
    opacity: .75;
  }
}
.notice-show {
  -webkit-transform: translateY(4.2rem);
  -moz-transform: translateY(4.2rem);
  -ms-transform: translateY(4.2rem);
  -o-transform: translateY(4.2rem);
  transform: translateY(4.2rem);
}

.share_bar{
  height: 3rem;
  background-color: #FFF9DA;
  color:#CE7436;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 0.3rem;

  button{
    border: 1px solid #CE7436;
    border-radius: 4px;
    color:#CE7436;
    float: right;
    background-color: #FFF9DA;

  }
}

/*产品名称，价格*/
.g-huodong {
  padding: 1rem;
  background: #fff;
  .green{
    height: 3.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    background-color: #DBFFCF;
  }
  .line{
    margin: 0.8rem 0;
    border-bottom: #cecccc 1px solid;
  }
  .pink{
    height: 3.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    background-color: #FCEFEE;
    color: #ec1809;
  }
  .msg{
    padding: 0.5rem;
    font-size: 1.2rem;
  }
}